home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / boxe / Boxe.jar / Boxe / CScreen.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-04-12  |  1.0 KB  |  47 lines

  1. package Boxe;
  2.  
  3. import com.siemens.mp.game.GraphicObjectManager;
  4. import javax.microedition.lcdui.Canvas;
  5.  
  6. abstract class CScreen extends Canvas implements Runnable {
  7.    protected final int GAME_SCREEN_WIDTH = ((Canvas)this).getWidth();
  8.    protected final int GAME_SCREEN_HEIGHT = ((Canvas)this).getHeight();
  9.    int _frame_cpt = 0;
  10.    short _y_offset;
  11.    boolean _alive = true;
  12.    GraphicObjectManager _gfxManager;
  13.    boolean _pause = true;
  14.    boolean _show_fps = false;
  15.    int _nb_frame;
  16.    long _frame_tick;
  17.    int _fps;
  18.  
  19.    CScreen() {
  20.       this._pause = false;
  21.    }
  22.  
  23.    public void hideNotify() {
  24.       this._pause = true;
  25.    }
  26.  
  27.    public void showNotify() {
  28.       this._pause = false;
  29.    }
  30.  
  31.    public void Show() {
  32.       this._pause = false;
  33.    }
  34.  
  35.    public void Hide() {
  36.    }
  37.  
  38.    abstract void Render();
  39.  
  40.    void Dispose() {
  41.       this._alive = false;
  42.       this._pause = true;
  43.    }
  44.  
  45.    public abstract void run();
  46. }
  47.